package org.stars.daostars;

import java.sql.Connection;

import org.stars.dao.exception.DaoException;

/**
 * It rapresents an object can be put in a DaoSession. 
 *
 */
public interface DaoSessionWorker {
	

	/**
	 * Getter of DaoSession
	 * 
	 * @param daoSession
	 */
	void setDaoSession(DaoSession daoSession);
	

	/**
	 * Setter of DaoSession
	 * 
	 * @return
	 */
	DaoSession getDaoSession();

	/**
	 * Set transaction
	 * 
	 * @param conn
	 * @throws DaoException
	 */
	void setTransaction(Connection conn) throws DaoException ;

}
